package com.hzx.entity;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

public class PageBean {

	// 当前页
	private int currentPage;
	// 查询多少个 pageSize
	private int pageSize;
	private DetachedCriteria criteria; // 查询条件

	private String msg = "";
	private int code = 0;

	private List data; // 当前页需要展示的数据集合
	private int count; // 总记录数

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public DetachedCriteria getCriteria() {
		return criteria;
	}

	public void setCriteria(DetachedCriteria criteria) {
		this.criteria = criteria;
	}

	public List getData() {
		return data;
	}

	public void setData(List data) {
		this.data = data;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

}
